ChangeSpeedCommand

class ChangeSpeedCommand(speedType: ChangeSpeedCommand.SpeedType, speed: Double, relative: Boolean = false, frame: MavlinkCommand.Frame = Frame.COMMAND) : MavlinkCommand

MAVLink command which allows to change the drone speed.

Parameters

speedType

speed type

speed

speed, in meters/second

relative

whether the speed change is relative or absolute. A false value means the speed change is absolute where a true value means the speed change is a relative change from the current speed.

frame

the reference frame of the coordinates.

Constructors

Link copied to clipboard
constructor(speedType: ChangeSpeedCommand.SpeedType, speed: Double, relative: Boolean = false, frame: MavlinkCommand.Frame = Frame.COMMAND)

Types

Link copied to clipboard
object Companion
Link copied to clipboard

Properties

Link copied to clipboard
Link copied to clipboard

The coordinate frame; set to global coordinate frame or relative altitude over ground.

Link copied to clipboard

the raw parameters of the command

Link copied to clipboard

The MAVLink command type

Link copied to clipboard

Whether the speed change is relative or absolute.

Link copied to clipboard

Speed, in meters/second.

Link copied to clipboard

Functions

Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
Link copied to clipboard
open override fun hashCode(): Int
Link copied to clipboard
fun write(writer: Writer, index: Int, frame: MavlinkCommand.Frame)

Writes the MAVLink command to the given writer.